package com.model;

public class Student {
    private int id;
    private String name;
    private int score;

    // 构造函数
    public Student(String name, int score) {
        this.name = name;
        this.score = score;

    }

    // 获取学生姓名
    public String getName() {
        return name;
    }

    // 设置学生姓名
    public void setName(String name) {
        this.name = name;
    }

    // 获取学生分数
    public int getScore() {
        return score;
    }

    // 设置学生分数
    public void setScore(int score) {
        this.score = score;
    }

    // 可以添加toString方法方便打印学生信息
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", score=" + score +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
